package com.campus.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class User {
    private static final long serialVersionUID = 1L;

    private Integer id;

    private String loginName;

    private String password;
    //用户性别：M表示男性；F表示女性
    private String gender;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date birthday;

    private String phone;

    private String email;

    //账号状态：1表示正常；2表示异常，已被删除
    private String status;
}
